package com.my.jli.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.util.Date;

/**
 * @ClassName HomeworkAndStudent
 * @Description 学生提交作业信息表
 * @Author MaYu
 * @Date 2022/4/7 19:51
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Entity(name = "tb_homework_student")
public class HomeworkAndStudent {
    //id
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    //提交日期
    private Date date;
    //提交作业的路径
    private String filepath;
    //提交作业的id
    private Integer hid;
    //提交学生的id
    private Integer sid;
}
